var filters = angular.module("ballFilter",[]);
filters.filter("unique",function() {
	return function(data,property){
		var sports = [];
		if(angular.isArray(data)){
			for(var i = 0;i < data.length;i++){
				if(sports.indexOf(data[i][property]) == -1){
					sports.push(data[i][property]);
				}
			}
			return sports;
		}else{
			return [];
		}
	}
});